package com.ruoyi.common.enums;

/**
 * 工单状态枚举类
 *
 * @author ruoyi
 */
public enum OrderStatus {

    DISPATCH("1", "待派单"),
    GRAB("2", "待抢单"),
    TAKE("3", "待接单"),
    BEFORECANCEL("4", "已取消（接单前）"),
    ONGOING("5", "进行中"),
    AFTERCANCEL("6", "已取消（接单后）"),
    FINISHED("7", "已完成"),
    EVALUATED("8", "已评价");

    private final String code;
    private final String info;

    OrderStatus(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
